package com.java.service.impl;

import com.java.mapper.UserMapper;
import com.java.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * description:描述
 * author:作者
 * time:2020/11/2 20:47
 */
@Service
public class UserServiceImpl implements com.java.service.UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAllUser(){

        List<User> list = userMapper.selectAllUser();

        System.out.println(((User)(list.get(0))).getUsername());
        return userMapper.selectAllUser();
    }
}
